package com.md.mainpage.model

import com.md.basedpc.rx.scheduler.SchedulerUtils
import com.md.network.api.RetrofitBuilderv2
import com.md.network.api.SearchResult
import io.reactivex.rxjava3.core.Observable

class SearchModel {

    fun search( page:Int, size:Int, keyWord:String):Observable<SearchResult>{
        return RetrofitBuilderv2.apiService.searchResult(page,size,keyWord)
                .compose(SchedulerUtils.ioToMain())
    }
}